package com.oil.business.service.impl;

import java.util.List;

import com.oil.business.domain.TActivityConfig;
import com.oil.business.mapper.TActivityConfigMapper;
import com.oil.business.service.ITActivityConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 活动配置Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-01-05
 */
@Service
public class TActivityConfigServiceImpl implements ITActivityConfigService
{
    @Autowired
    private TActivityConfigMapper tActivityConfigMapper;

    /**
     * 查询活动配置
     * 
     * @param id 活动配置主键
     * @return 活动配置
     */
    @Override
    public TActivityConfig selectTActivityConfigById(Long id)
    {
        return tActivityConfigMapper.selectTActivityConfigById(id);
    }

    /**
     * 查询活动配置列表
     * 
     * @param tActivityConfig 活动配置
     * @return 活动配置
     */
    @Override
    public List<TActivityConfig> selectTActivityConfigList(TActivityConfig tActivityConfig)
    {
        return tActivityConfigMapper.selectTActivityConfigList(tActivityConfig);
    }

    /**
     * 新增活动配置
     * 
     * @param tActivityConfig 活动配置
     * @return 结果
     */
    @Override
    public int insertTActivityConfig(TActivityConfig tActivityConfig)
    {
        return tActivityConfigMapper.insertTActivityConfig(tActivityConfig);
    }

    /**
     * 修改活动配置
     * 
     * @param tActivityConfig 活动配置
     * @return 结果
     */
    @Override
    public int updateTActivityConfig(TActivityConfig tActivityConfig)
    {
        return tActivityConfigMapper.updateTActivityConfig(tActivityConfig);
    }

    /**
     * 批量删除活动配置
     * 
     * @param ids 需要删除的活动配置主键
     * @return 结果
     */
    @Override
    public int deleteTActivityConfigByIds(Long[] ids)
    {
        return tActivityConfigMapper.deleteTActivityConfigByIds(ids);
    }

    /**
     * 删除活动配置信息
     * 
     * @param id 活动配置主键
     * @return 结果
     */
    @Override
    public int deleteTActivityConfigById(Long id)
    {
        return tActivityConfigMapper.deleteTActivityConfigById(id);
    }
}
